<?php

class news_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
        
    }
    function get($id)
    {
        $query = $this->db->query("
            SELECT * FROM `news`
            WHERE `id`='$id'
        ");
        return $query->result();
    }
    function gets()
    {
        $query = $this->db->query("
            SELECT * FROM `news`
            ");
        return $query->result();
    }
    
}
?>
